From: Nilesh Patra Date: Wed, 6 Oct 2021 10:38:58 +0000 (+0100) Subject: Manually pass in -latomic on armel to fix FTBFS X-Git-Tag: archive/raspbian/1.1.0-1+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=42cfc885ef731a9fa07bd30c3ed13735b1a252b6;p=r-cran-s2.git Manually pass in -latomic on armel to fix FTBFS Last-Update: 2021-10-05 Gbp-Pq: Name fix-armel-ftbfs.patch --- diff --git a/src/Makevars.in b/src/Makevars.in index e1df096..1680267 100644 --- a/src/Makevars.in +++ b/src/Makevars.in @@ -3,6 +3,10 @@ PKG_LIBS = @libs@ PKG_CXXFLAGS = @cflags@ -pthread CXX_STD = CXX11 +ifneq (,$(filter $(DEB_HOST_ARCH),armel mipsel riscv64 m68k powerpc)) +PKG_LIBS += -latomic +endif + ABSL_LIBS = absl/base/internal/cycleclock.o \ absl/base/internal/exponential_biased.o \ absl/base/internal/low_level_alloc.o \